package com.aerfazhe.controller;

import com.aerfazhe.wsdl.User;
import com.aerfazhe.wsdl.UserPortType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author：wk
 * @Create：2022/4/2/11:58
 * @Description：TODO
 * @Version：1.0
 */
@RestController
public class UserController {

    @Resource(name = "cxfProxy")
    private UserPortType userPortType;

    @GetMapping("/getUserName")
    public User getUserName(String name) {
        User user = userPortType.getUserName(name);
        return user;
    }

}
